package org.zhuxian.cn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("users")
@ApiModel(description = "用户信息实体类")
public class User {
    @ApiModelProperty(value = "用户ID", example = "1")
    @TableId(type = IdType.AUTO)
    private Long id;


    @ApiModelProperty(value = "用户名", example = "zhangsan")
    private String username;

    @ApiModelProperty(value = "密码", example = "password123")
    private String password;

    @ApiModelProperty(value = "手机号", example = "13800138000")
    private String phone;

    @ApiModelProperty(value = "邮箱", example = "example@email.com")
    private String email;

    @ApiModelProperty(value = "用户状态：0-禁用，1-正常", example = "1")
    private Integer status;

    @ApiModelProperty(value = "权限等级：1-普通用户，2-高级用户，3-管理员", example = "1")
    private Integer permissionLevel;

    @ApiModelProperty(value = "昵称", example = "张三")
    private String nickname;
}